<?php
require_once "Common/values.php";
require "Common/database.php";
if($row['Username']==' '){
echo '<h1>Acess Denied';
exit;

}
echo'

<table width="100%">
<tr class="noborder"><td class="noborder">
<table width="100%"><tr>';




echo '<td class="noborder">
<div align="center">

<h1>';
echo $title ;
echo '</br>' ;




echo '<p>'.$name;
echo '
</h1>
</strong>
</div> ';
echo '<center>Welcome '.$user.'<P>';
if ($status!='none')
    {
require_once $status;
    }

$result = mysql_query("SELECT * FROM tblUsers WHERE Name='$user'");
$row = mysql_fetch_array($result);
if($row['h']>=1)
{
echo '<center><table><tr><FORM action="index.php?p=hsearch&m=h" method="POST">';
echo '<td style="border : 0px solid ;">Log:<INPUT type="text" name="logsearch" size="10" maxlength="10"></td> ';
echo ' <td><INPUT type="image" src="img/submit.gif"></td></table> </FORM>';

}
echo '<center><a href="index.php?p=theme">Change theme</a>';
if($ldap=='false')
{
echo '<br><a href="index.php?p=cpasswd">Change password</a>';
}
echo ' <p></td><td class="noborder">';
if($row['l']>=1)
{
require_once "helpdesk/addevent.php";

}
echo '<p>';
#require "Common/operators.php";
#require "Common/jobs.php";

echo '</td></tr></table> ';
?>